num = 9
str=''
for i in range(1,num+1):
    for j in range(1,i+1):
        str+=f"{j}x{i}={i*j} "
        if i*j < 10:
            str+=" "
    str+='\n'
print(str)